package com.think.admin.oauth.integration;

/**
 * <p>
 * 存储认证类容器
 *
 * </p>
 *
 * @author: xwj
 * @data: 2019-05-10
 */
public class IntegrationAuthenticationContext {

    private static ThreadLocal<IntegrationAuthentication> holder = new ThreadLocal<>();

    public static void set(IntegrationAuthentication integrationAuthentication) {
        holder.set(integrationAuthentication);
    }

    public static IntegrationAuthentication get() {
        return holder.get();
    }

    public static void clear() {
        holder.remove();
    }
}
